<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>login.jsp</title>
<style type="text/css">
    *{font-weight: bold;}
	input{width:350px;height:40px;}
	input[type="submit"]{background-color: black;color:white;width:100px;}
	input[type="button"]{background-color: black;color:white;width:100px;}
	select{width:100px;height:40px;}
   form{width:40%;height:600px;margin-left: 50%;}
   body{background-image: url(images/bac.png);background-size: 100% 100%;}
   a{color:white;font-weight: bold;text-decoration: none;}
</style>
  </head>
  <c:if test="${not empty mess  }">
		<script type="text/javascript">
			alert("${mess}")
		</script>
</c:if>
  <body><br><br>
    <div class="login">
	<form  action="userLogin" method="post" >
	<br><br><br><br><br><br><br><br>
	    <span>登录账号</span><br>
		<input type="text" name="username"   placeholder="用户名……"/>
		<br><br>
		 <span>登录密码</span><br>
		<input type="password" name="userpass"    placeholder="密码"/><br><br>
		<select name="status">
		<option>用户</option>
		<option>管理员</option>
		</select><br><br>
		<input type="submit" value="登录账号" />

    	<input type="button"  onclick="gozc()" value="账号注册" /><br>
		<span style="color:red;font-size:25px;">${msg}</span><br>
		<a href="i18n" style="position:absolute;left:20px;top:20px;">前往首页</a>
	</form>
    </div>
</body>
<script type="text/javascript">
	function gozc() {
		window.location.href="CheckAddUser";
		
	}
</script>
</html>
